API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsWinUi
Themes
Theme.h
1
// Theme.h
3
//
5
6
namespace
nkWinUi
7
{
11
struct
DLL_WINUI_EXPORT
ThemeColors
12
{
16
Color
_primaryColor
;
20
Color
_secondaryColor
;
24
Color
_ternaryColor
;
25
29
Color
_hoverColor
;
30
34
Color
_textColor
;
35
} ;
36
}
37
38
namespace
nkWinUi
39
{
43
class
DLL_WINUI_EXPORT
Theme
final
44
{
45
public :
46
50
Theme
() ;
54
~Theme
() ;
55
56
// Getters
60
nkMemory::StringView
getName
()
const
;
64
ThemeColors
&
getColors
() ;
68
const
ThemeColors
&
getColors
()
const
;
69
70
// Setters
76
void
setName
(
const
nkMemory::StringView
& name) ;
77
} ;
78
}
nkWinUi::ThemeColors::_textColor
Color _textColor
Definition:
Theme.h:34
nkWinUi::Theme::Theme
Theme()
nkWinUi::Theme::~Theme
~Theme()
nkWinUi::ThemeColors::_hoverColor
Color _hoverColor
Definition:
Theme.h:29
nkWinUi::Theme::getColors
const ThemeColors & getColors() const
nkWinUi::Theme::setName
void setName(const nkMemory::StringView &name)
nkWinUi::ThemeColors::_ternaryColor
Color _ternaryColor
Definition:
Theme.h:24
nkWinUi::Color
Represents a color, with 4 channels.
Definition:
Color.h:12
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition:
StringView.h:22
nkWinUi::Theme
A theme used to style the windows in the component.
Definition:
Theme.h:44
nkWinUi::Theme::getColors
ThemeColors & getColors()
nkWinUi::Theme::getName
nkMemory::StringView getName() const
nkWinUi::ThemeColors::_primaryColor
Color _primaryColor
Definition:
Theme.h:16
nkWinUi::ThemeColors::_secondaryColor
Color _secondaryColor
Definition:
Theme.h:20
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition:
Button.h:7
nkWinUi::ThemeColors
Information about all the colors a theme will need.
Definition:
Theme.h:12
Generated by
Doxygen
1.8.18